package io.bsly.modules.sys.ws;

import lombok.Data;

import java.util.Date;

/**
 * @Author: Hank
 * @Date: 2019/7/18 18:16
 * @Description: TODO
 */
@Data
public class WsMessage {
    private WsMessageType type;
    private Object data;
    private Date time;

    public WsMessage() {
        this.time = new Date();
    }

    public WsMessage(WsMessageType type, Object data) {
        this.type = type;
        this.data = data;
        this.time = new Date();
    }
}
